package com.mby.entity;

import com.fasterxml.jackson.annotation.JsonInclude;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * Created by developer_01 on 2018/5/17.
 */
@Document(collection = "roles")
@JsonInclude(value = JsonInclude.Include.NON_DEFAULT)
public class Role {
    @Id
    private Integer id;
    private String name;
    private String[] functions;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String[] getFunctions() {
        return functions;
    }

    public void setFunctions(String[] functions) {
        this.functions = functions;
    }
}
